﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" ValidateRequest="false"
    AutoEventWireup="true" CodeFile="HappyCourseUpdForm.aspx.cs" Inherits="App_Input_HappyCourseUpdForm" Title="课程登记" %>

<%@ Register Assembly="ShpmCommon" Namespace="Shpm.System.Web.Control" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script language="javascript" type="text/javascript">
   
    </script>

    <cc1:ComValidator ID="ComValidator1" runat="server" Visible="false">
     <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtActName">
      <cc1:ComAbsParamsAttribute Parameter="课程名称" />
    </cc1:CheckRequiredAttribute>
     <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtBeginDate">
      <cc1:ComAbsParamsAttribute Parameter="课程开始日期" />
    </cc1:CheckRequiredAttribute>
     <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtEndDate">
      <cc1:ComAbsParamsAttribute Parameter="课程结束日期" />
    </cc1:CheckRequiredAttribute>
    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtTeacherId">
      <cc1:ComAbsParamsAttribute Parameter="授课教师" />
    </cc1:CheckRequiredAttribute>
     <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtActAddress">
      <cc1:ComAbsParamsAttribute Parameter="开课地点" />
    </cc1:CheckRequiredAttribute>
     <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtActCount">
      <cc1:ComAbsParamsAttribute Parameter="预计学员人数" />
    </cc1:CheckRequiredAttribute>
    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtFeePropagandize">
      <cc1:ComAbsParamsAttribute Parameter="教师报酬" />
    </cc1:CheckRequiredAttribute>
    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtFeeTraffic">
      <cc1:ComAbsParamsAttribute Parameter="交通餐饮" />
    </cc1:CheckRequiredAttribute>
    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtFeeMaterial">
      <cc1:ComAbsParamsAttribute Parameter="耗材能源" />
    </cc1:CheckRequiredAttribute>
    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtFeeLogistics">
      <cc1:ComAbsParamsAttribute Parameter="后勤服务" />
    </cc1:CheckRequiredAttribute>
    <cc1:CheckRequiredAttribute Code="E0082" ControlToValidator="txtIncome">
      <cc1:ComAbsParamsAttribute Parameter="学费" />
    </cc1:CheckRequiredAttribute>
    <cc1:CheckDateAttribute Code="E0037" ControlToValidator="txtBeginDate" DataFormat="yyyy/mm/dd">
        <cc1:ComAbsParamsAttribute Parameter="课程开始日期" />
    </cc1:CheckDateAttribute>
    <cc1:CheckDateAttribute Code="E0037" ControlToValidator="txtEndDate" DataFormat="yyyy/mm/dd">
        <cc1:ComAbsParamsAttribute Parameter="课程结束日期" />
    </cc1:CheckDateAttribute>
    <cc1:CheckLongAttribute Code="E0322" ControlToValidator="txtTeacherId">
        <cc1:ComAbsParamsAttribute Parameter="授课教师" />
    </cc1:CheckLongAttribute>
     <cc1:CheckLongAttribute Code="E0322" ControlToValidator="txtActCount">
        <cc1:ComAbsParamsAttribute Parameter="预计学员人数" />
    </cc1:CheckLongAttribute>
     <cc1:CheckDoubleAttribute Code="E0036" ControlToValidator="txtFeePropagandize">
      <cc1:ComAbsParamsAttribute Parameter="教师报酬" />
    </cc1:CheckDoubleAttribute>
    <cc1:CheckDoubleAttribute Code="E0036" ControlToValidator="txtFeeTraffic">
      <cc1:ComAbsParamsAttribute Parameter="交通餐饮" />
    </cc1:CheckDoubleAttribute>
    <cc1:CheckDoubleAttribute Code="E0036" ControlToValidator="txtFeeMaterial">
      <cc1:ComAbsParamsAttribute Parameter="耗材能源" />
    </cc1:CheckDoubleAttribute>
    <cc1:CheckDoubleAttribute Code="E0036" ControlToValidator="txtFeeLogistics">
      <cc1:ComAbsParamsAttribute Parameter="后勤服务" />
    </cc1:CheckDoubleAttribute>
    <cc1:CheckDoubleAttribute Code="E0036" ControlToValidator="txtIncome">
      <cc1:ComAbsParamsAttribute Parameter="学费" />
    </cc1:CheckDoubleAttribute>
    <cc1:CheckPhoneAttribute Code="E0036" ControlToValidator="txtPhone">
      <cc1:ComAbsParamsAttribute Parameter="联系电话" />
    </cc1:CheckPhoneAttribute>
    </cc1:ComValidator>
    <table width="100%">
        <tr>
            <td>
                <table class="table_border_line">
                    <tr>
                        <td align="left" colspan="6">

                            <script language="javascript">
                                        (new TitleBar('SearchBar', '活动计划登记')).showBar();
                            </script>

                        </td>
                    </tr>
                </table>
                <table class="table_border_line" style="background: ffffff">
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td align="left" class="list_data_bg_left" style="width: 20%">&nbsp; 课程编号：</td>
                        <td align="left" style="width: 25%">&nbsp;<asp:Label ID="labCurriculumId" runat="server"></asp:Label></td>
                        <td align="left" style="width: 20%">&nbsp;</td>
                        <td align="left" style="width: 25%">&nbsp;</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td align="left" class="list_data_bg_left" style="width: 20%"><span style="color: #ff0000">
                            *</span>课程名称：</td>
                        <td align="left" style="width: 25%">&nbsp;<asp:TextBox ID="txtActName" runat="server"
                            MaxLength="10" Width="89px"></asp:TextBox></td>
                        <td align="left" style="width: 20%"><span style="color: #ff0000">*</span>&nbsp;课程分类：</td>
                        <td align="left" style="width: 25%">&nbsp;<asp:DropDownList ID="lstActType" runat="server" DataTextField="Content" DataValueField="DictNo">
                        </asp:DropDownList></td>
                        <td style=""></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px;">&nbsp;</td>
                        <td style="HEIGHT: 24px" align="left" nowrap class="list_data_bg_left"><span style="color: #ff0000">
                            *</span>开课日期：</td>
                        <td style="HEIGHT: 24px" align="left" nowrap>&nbsp;<asp:TextBox ID="txtBeginDate" runat="server"
                            MaxLength="10" Width="89px" onfocus="new Calendar(1900,2015,0,null).show(this);"></asp:TextBox>
                            ~<asp:TextBox ID="txtEndDate" runat="server" MaxLength="10" Width="89px" onfocus="new Calendar(1900,2015,0,null).show(this);"></asp:TextBox></td>
                        <td align="left" style="HEIGHT: 24px" nowrap><span style="color: #ff0000">*</span>&nbsp;开课地点：</td>
                        <td align="left" style="HEIGHT: 24px" nowrap>&nbsp;<asp:TextBox ID="txtActAddress" runat="server"
                            Width="97%"></asp:TextBox>&nbsp;</td>
                        <td style="HEIGHT: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px; height: 24px;"><span style="color: #ff0000">*</span>授课教师：</td>
                        <td style="HEIGHT: 24px">&nbsp;<asp:TextBox ID="txtTeacherId" runat="server" MaxLength="4" Width="88px"></asp:TextBox>
                            &nbsp;<asp:TextBox ID="txtTeacherName" runat="server" BackColor="#E0E0E0" BorderColor="#E0E0E0"
                                contentEditable="false" ForeColor="Black" Width="89px"></asp:TextBox><a href="#" onclick="javascript:popupTeacherSearch('<%=txtTeacherId.ClientID%>', '<%=txtTeacherName.ClientID %>' );">
                                <img id="searchImg" runat="server" src="../../images/search.jpg" border="0" />
                            </a></td>
                        <td style="HEIGHT: 24px">&nbsp; &nbsp;&nbsp;</td>
                        <td style="HEIGHT: 24px"></td>
                        <td style="height: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px; height: 24px;">&nbsp; 招生对象：</td>
                        <td style="HEIGHT: 24px">&nbsp;<asp:TextBox ID="txtActObject" runat="server" MaxLength="100" Width="89px"></asp:TextBox></td>
                        <td style="HEIGHT: 24px"><span style="color: #ff0000">*</span>预计学员人数：</td>
                        <td style="HEIGHT: 24px">&nbsp;<asp:TextBox ID="txtActCount" runat="server" MaxLength="10" Width="89px"></asp:TextBox></td>
                        <td style="height: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 联系人：</td>
                        <td>&nbsp;<asp:TextBox ID="txtRelationName" runat="server"  Width="89px"></asp:TextBox>
                            &nbsp;</td>
                        <td>&nbsp;&nbsp; 联系电话：</td>
                        <td>&nbsp;<asp:TextBox ID="txtPhone" runat="server" MaxLength="10" Width="89px"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px; height: 24px;"></td>
                        <td style="height: 24px"></td>
                        <td style="height: 24px"></td>
                        <td style="height: 24px"></td>
                        <td style="height: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="HEIGHT: 24px">&nbsp; 经费预算：（成本）</td>
                        <td style="HEIGHT: 24px">&nbsp;<span style="color: #ff0000">*</span>教师报酬（元）
                            <asp:TextBox ID="txtFeePropagandize" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td style="HEIGHT: 24px"></td>
                        <td style="HEIGHT: 24px">&nbsp;<span style="color: #ff0000">*</span>交通餐饮（元）
                            <asp:TextBox ID="txtFeeTraffic" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td style="height: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="HEIGHT: 24px"></td>
                        <td style="HEIGHT: 24px">&nbsp;<span style="color: #ff0000">*</span>耗材能源（元）
                            <asp:TextBox ID="txtFeeMaterial" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td style="HEIGHT: 24px"></td>
                        <td style="HEIGHT: 24px">&nbsp;<span style="color: #ff0000">*</span>后勤服务（元）
                            <asp:TextBox ID="txtFeeLogistics" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td style="height: 24px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="HEIGHT: 24px"></td>
                        <td style="HEIGHT: 24px"></td>
                        <td style="HEIGHT: 24px"></td>
                        <td style="HEIGHT: 24px"></td>
                        <td style="height: 24px"></td>
                    </tr>                    
                    <tr>
                        <td style="width: 5px; height: 23px"></td>
                        <td class="list_data_bg_left" style="height: 23px">&nbsp; 经费预算：（收入）</td>
                        <td style="height: 23px"><span style="color: #ff0000">*</span>学费（含资料费）（元）<asp:TextBox ID="txtIncome" runat="server" MaxLength="10" Width="60px"></asp:TextBox></td>
                        <td style="height: 23px"></td>
                        <td style="height: 23px"></td>
                        <td style="height: 23px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left"></td>
                        <td></td>
                        <td></td>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 86px"></td>
                        <td class="list_data_bg_left" style="width: 126px; height: 86px;">&nbsp; 课程内容：</td>
                        <td style="HEIGHT: 86px" colspan="3">&nbsp;<asp:TextBox ID="txtMemo1" runat="server" Rows="5"
                            TextMode="MultiLine" Width="99%"></asp:TextBox></td>
                        <td style="HEIGHT: 86px"></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 预期效果：</td>
                        <td colspan="3">&nbsp;<asp:TextBox ID="txtMemo2" runat="server" Rows="5" TextMode="MultiLine"
                            Width="99%"></asp:TextBox></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 25px"></td>
                        <td class="list_data_bg_left" style="HEIGHT: 25px"></td>
                        <td colspan="3" style="height: 25px"></td>
                        <td style="height: 25px"></td>
                    </tr>
                    <tr  id="tdApprove" runat="server" visible="false" >
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px">&nbsp; 学堂领导意见：</td>
                        <td style="">&nbsp;<asp:RadioButtonList ID="lstAud1" runat="server" DataTextField="Content" DataValueField="DictNo">                            
                          
                        </asp:RadioButtonList></td>
                        <td style="">&nbsp;</td>
                        <td style="">&nbsp;</td>
                        <td></td>
                    </tr>
                    <tr>
                        <td style="width: 5px; height: 24px"></td>
                        <td class="list_data_bg_left" style="width: 126px"></td>
                        <td style="">
                            </td>
                        <td style=""></td>
                        <td style="">
                            </td>
                        <td></td>
                    </tr>
                    <tr>
                        <td colspan="6" align="center"></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" style="">
                <asp:Button ID="btnOk" runat="server" Text="  保 存  " Height="22px" Width="89px" CssClass="button"
                    OnClick="btnOk_Click" CommandName="SAVE" OnClientClick="javascript:return window.confirm('是否保存数据？');"/>
                <asp:Button ID="btnSubmit" runat="server" Text="  提 交  " Height="22px" Width="89px"
                    CssClass="button" OnClientClick="javascript:return window.confirm('确定要提交当前活动计划吗？\n提交后该活动方案就不再允许修改了，继续吗？');"
                    OnClick="btnOk_Click" CommandName="COMPLETE"/>
                <asp:Button ID="btnDel" runat="server" Text="  删 除  " Height="22px" Width="89px"
                    CssClass="button" OnClientClick="javascript:return window.confirm('确定要删除当前活动计划吗？');"
                    OnClick="btnDel_Click" /><asp:Button ID="btnAud" runat="server" Text="  审 批  " Height="22px" Width="89px"
                    CssClass="button" OnClientClick="javascript:return window.confirm('确定要审批该活动计划吗？');" OnClick="btnAud_Click" />
                <asp:Button ID="btnBack" runat="server" Text="  返 回  " Height="22px" Width="89px"
                    CssClass="button" OnClick="btnBack_Click" /></td>
        </tr>
    </table>
</asp:Content>
